package com.xjh.basestudy.leetcode.tool;


import lombok.Data;

/**
 * @Author:XuJianHua
 * @Date:2023/1/13
 * @Description:
 */
@Data
public class TreeNode {
    private int val;
    private TreeNode left;
    private TreeNode right;

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}

